package com.cn.项目.飞机预约管理系统.UserFrame;

import javax.swing.*;
import java.awt.*;

public class MyPFrame extends JFrame{

  public MyPFrame(){
      this.setLayout(new BorderLayout());
      JLabel jLabel = new JLabel("目前乘客");
      jLabel.setFont(new Font("华文楷书", 1, 30));
      JPanel p1 = new JPanel();

      p1.add(jLabel,JLabel.CENTER);
      this.add(p1,"North");

      this.add(new ShowPassenfer(),"Center");
      this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
      this.setSize(500,500);
      this.setVisible(true);
      this.setLocation(500, 250);
  }
}
